<div class="search">
    <input type="text" [(ngModel)]="keyWords" />

    <button (click)="doSearch()">搜索</button>
<hr>
<ul>
    <li *ngFor="let item of wordsList;let key=index"  >{{item}}<button (click)="doDelete(key)" >--</button></li>
</ul>
</div>